package com.jshoperxms.controller.mall.backstage.membercart;

import com.jshoperxms.controller.mall.backstage.base.BaseTController;
import com.jshoperxms.controller.mall.backstage.base.IBaseCtrl;
import com.jshoperxms.controller.mall.backstage.base.SearchModel;
import com.jshoperxms.controller.utils.statickey.SerialKeys;
import com.jshoperxms.entity.MemberCartT;
import com.jshoperxms.service.MemberCartTService;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;
import java.text.ParseException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by sdywcd on 17/1/4.
 * Des:
 */
@Controller
@RequestMapping("/mall/membercart")
public class MemberCartTController extends BaseTController implements IBaseCtrl<MemberCartT> {

    private Map<String,Object> responsedata=new HashMap<>();


    @Resource
    private MemberCartTService memberCartTService;


    @Override
    public ResponseEntity save(@RequestBody MemberCartT rq) {

        MemberCartT bean=new MemberCartT();
        bean.setId(this.serial.Serialid(SerialKeys.MEMBERCART));

        return null;
    }

    @Override
    public ResponseEntity find(@RequestBody MemberCartT rq) {
        return null;
    }

    @Override
    public ResponseEntity del(@RequestBody MemberCartT rq) {
        return null;
    }

    @Override
    public ResponseEntity update(@RequestBody MemberCartT rq) throws ParseException {
        return null;
    }

    @Override
    public ResponseEntity findAll() {
        return null;
    }

    @Override
    public ResponseEntity findByPage(SearchModel searchModel, @RequestParam("search[value]") String search, @RequestParam("order[0][column]") String ordervalue, @RequestParam("order[0][dir]") String ordertype) {
        return null;
    }

    @Override
    public void findCustomSearch(SearchModel searchModel, String search, String ordervalue, String ordertype) {

    }

    @Override
    public void filterSearch(SearchModel searchModel, String search) {

    }

    @Override
    public void findDefaultAll(SearchModel searchModel, String ordervalue, String ordertype) {

    }

    @Override
    public void processPageList(List<MemberCartT> list) {

    }

    @Override
    public boolean checkDuplicates(String str) {
        return false;
    }
}
